﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ZSZ.Website.Areas.WebAdmin.Models
{
    public class RoleEditViewModel
    {
        [Required(ErrorMessage = "角色Id不能为空")]
        [Display(Name = "角色Id")]
        public long id { get; set; }

        [Required(ErrorMessage = "角色名称不能为空")]
        [Display(Name = "角色名称")]
        public string name { get; set; }

        [Display(Name = "角色描述")]
        public string description { get; set; }

        [Required(ErrorMessage = "未设置角色")]
        [Display(Name = "角色权限")]
        public long[] permissions { get; set; }
    }
}